export default {
  methods: {
    // 检查是否有权限导入员工
    checkPerm(pointName) {
    // 如果不存在角色数据roles
      if (!this.$store.state.user.userInfo.roles) {
        return false
      }
      // 读取当前员工的points数据,检查是否有权限导入员工,有则显示导入按钮
      console.log(this.$store.state.user.userInfo.roles.points.includes(pointName))
      return this.$store.state.user.userInfo.roles.points.includes(pointName)
    }
  }
}
